Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 5 - Ink Objects / Ink Objects Reference
Functions / Creating and Manipulating Ink Objects


GXEqualInk

You can use the GXEqualInk function to determine whether two ink objects are equal.

boolean GXEqualInk(gxInk one, gxInk two);
one
A reference to one of the ink objects to test for equality.
two
A reference to the other ink object to test for equality.
function result
true if the ink specified by the one parameter is equal to the ink specified by the two parameter; otherwise false.
DESCRIPTION
The GXEqualInk function returns as its function result a Boolean value indicating whether the ink object specified by the one parameter is equal to the ink object specified by the two parameter.

For two ink objects to be equal, they must have identical colors, transfer modes, and attributes, although their owner count and tag list need not be identical.

ERRORS, WARNINGS, AND NOTICES
Errors 
out_of_memory 
ink_is_nil 
SEE ALSO
To make a copy of an ink object that is equal by the criteria of this function, use the GXCopyToInk function, described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996